Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the fully mounted check in JVMTI Suspend/Resume Thread #18448

Closed
wants to merge 1 commit into from

Conversation

babsingh
Copy link
Contributor

During JVMTI suspend/resume thread operations, the current check to
determine if a thread is fully mounted is flaky. It depends on
J9VMThread->theadObject which might change after getVMThread due to
Java level changes, which are accepted as-is from the RI.

The check to determine if a thread is fully mounted is moved into
getVMThread. The check is updated to use the continuation state, which
is more stable since the Continuation implementation is maintained
within OpenJ9.

Related: #17865
Related: #17869
Related: #18370

@babsingh
Copy link
Contributor Author

@fengxue-IS Requesting your review.

fyi @tajila

Copy link
Contributor

@fengxue-IS fengxue-IS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tajila
Copy link
Contributor

tajila commented Nov 13, 2023

jenkins test sanity alinux64 jdk21

During JVMTI suspend/resume thread operations, the current check to
determine if a thread is fully mounted is flaky. It depends on
J9VMThread->theadObject which might change after getVMThread due to
Java level changes, which are accepted as-is from the RI.

The check to determine if a thread is fully mounted is moved into
getVMThread. The check is updated to use the continuation state, which
is more stable since the Continuation implementation is maintained
within OpenJ9.

Related: eclipse-openj9#17865
Related: eclipse-openj9#17869
Related: eclipse-openj9#18370

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@babsingh
Copy link
Contributor Author

Old PR build: https://openj9-jenkins.osuosl.org/job/PullRequest-OpenJ9/4747.

Resolved merge conflicts in jvmtiHelpers.cpp, which occurred due to the merge of #18413.

Restarting the PR build:

jenkins test sanity.functional,extended.openjdk aix,zlinux jdk21

@babsingh babsingh marked this pull request as draft November 14, 2023 20:37
@babsingh
Copy link
Contributor Author

This approach has side-effects. In some cases, a virtual thread is expected to be mounted but this approach shows it as unmounted. #18453 supersedes this PR.

@babsingh babsingh closed this Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants